package com.hyj.shop.project.utils.domain;

import java.util.StringJoiner;

public class Msg {
    private int code;
    private Object data;
    private String status;
    private String token;
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Msg.class.getSimpleName() + "[", "]")
                .add("code=" + code)
                .add("data=" + data)
                .add("status='" + status + "'")
                .toString();
    }
}
